/* -----------------------------------------------------------------------------
 * PROJECT    : net.lwf
 * FILE       : PrintUtil.java
 *
 * HISTORY:
 * Date          Author                        Description
 * ----------------------------------------------------------------------------- 
 * Nov 27, 2008       Raghu Sarraff			       Created
 */
package net.lwf.common.util;

import java.util.Iterator;
import java.util.Map;

/**
 * Type the class description here
 *  
 */
public class PrintUtil {

	public static void printMap(Map mapdata) {
		Iterator iter = mapdata.entrySet().iterator();
		while(iter.hasNext()) {
			Map.Entry mapentry = (Map.Entry) iter.next();
			System.out.println("====> Key: " + mapentry.getKey() + " AND value: " + mapentry.getValue());
		}
	}
	
	public static void print(int[] numbers) {
		for(int i=0; i<numbers.length; i++) {
			System.out.println(numbers[i]);
		}
		System.out.println("==> Least number: " + numbers[0]);
		System.out.println("==> Highest number: " + numbers[numbers.length-1]);
	}
	
}

